<template>
  <div class="about">
    <h1>This is an about page</h1>
    <a @click="addCount()">增加数字</a>
    <br>
    <a @click="lessCount()">减少数字</a>
  </div>
</template>
<script>
// @ is an alias to /src

export default {
  components: {
  },
  methods: {
    addCount() {
      // this.$store.commit('addCount');
      this.$store.dispatch('addCount');
    },
    lessCount() {
      // this.$store.commit('lessCount');
      this.$store.dispatch({type:'lessCount'});
    }
  },
}
</script>
